<script setup lang="ts">
import b from '~/assets/images/news/banner-bg.jpg'
</script>

<template>
  <div class="works">
    <div class="works-top">
      <div class="banner-container">
        <BannerMedia :url="b"/>
      </div>
      <h1 class="title">作品案例</h1>
    </div>
    <div class="work-intro">
      <div class="title">精品案例</div>
      <div class="desc">拥有遍布亚洲及跨越全球的网络，提供全口岸、全过程的一站式综合口岸物流服务，依托综合服务能力，打造方便便捷的完整供应链服务体系。</div>
    </div>
    <div class="works-content">
      <div class="works-item" v-for="i in 10">
        <CardInfoItem link="/works/2"/>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.works {
  .works-top {
    position: relative;
    width: 24rem;
    height: 8.54rem;
    padding-left: 1.66rem;
    padding-top: 3.78rem;

    .title {
      font-size: 1rem;
      font-weight: bold;
      color: #FFFFFF;
      line-height: 0.6rem;
    }

    .banner-container {
      z-index: -1;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
  .work-intro{
    padding-left: 1.78rem;
    padding-top: 0.88rem;
    .title{
      font-size: 0.48rem;
      font-weight: 500;
      color: #000000;
    }
    .desc{
      margin-top: 0.25rem;
      font-size: 0.23rem;
      font-weight: 400;
      color: #000000;
    }
  }

  .works-content {
    padding-top: 0.91rem;
    padding-left: 1.78rem;
    padding-bottom: 1.15rem;
    display: flex;
    flex-wrap: wrap;

    .works-item {
      margin-right: 0.41rem;
      margin-bottom: 0.6rem;

      &:nth-child(3n) {
        margin-right: 0;
      }
    }
  }
}
</style>
